package com.example.mybatis.handler.type.handler.impl;

import com.example.mybatis.handler.type.JdbcType;
import com.example.mybatis.handler.type.handler.TypeHandler;

import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public abstract class AbstractTypeHandler<T> implements TypeHandler<T> {
    @Override
    public void setParameter(PreparedStatement ps, int i, T parameter) throws SQLException {
        this.setParameter(ps, i, parameter, null);
    }

    @Override
    public T getResult(CallableStatement cs, int columnIndex) throws SQLException {
        throw new UnsupportedOperationException();
    }


}
